<template>
  <div>
    <div class="detailheader">
        <!-- 详情头部 -->
      <van-nav-bar @click-left="$router.go(-1)" @click-right="$router.push('/car')">
        <template #left>
          <van-icon name = "shouye" class-prefix ="icon" class="iconfont" size="22"/>
        </template>
        <template #title>
          <img @click="$router.push('/home')" src="@/assets/img/网易严选.png" alt="">
        </template>
        <template #right>
          <van-icon name="search" size="25" color="black"  style="marginRight:10px;" />
          <van-icon name = "cart" class-prefix ="icon" class="iconfont" size="25"/>
        </template>
      </van-nav-bar>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      params: {
        title: {
          type: String,
          required: true
        }
      }
    }
  },
   methods: {
     
  }
}
</script>

<style lang="scss" scoped>
  .detailheader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    img{
      width: 93.3px;
      height: 29.3px;
      vertical-align: middle;
    }
  }
</style>
